package com.kingyun.gpsinspection.purificationservice.common.enums;

/**
 * 周期的单位枚举
 * Created by sugongche on 2016/11/26.
 */
public enum PeriodUnitEnum {
    PERIOD_UNIT_ENUM_1(1,"小时"),
    PERIOD_UNIT_ENUM_2(2,"日"),
    //不选择周：比较麻烦
    //PERIOD_UNIT_ENUM_3(3,"周"),
    PERIOD_UNIT_ENUM_4(4,"月"),
    PERIOD_UNIT_ENUM_5(5,"年"),
    ;

    PeriodUnitEnum(Integer code, String description){
        this.code=code;
        this.decription=description;
    }

    // 编码
    private Integer code;
    // 描述
    private String decription;

    public Integer code (){
        return code;
    }

    public  String description(){
        return decription;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDecription() {
        return decription;
    }

    public void setDecription(String decription) {
        this.decription = decription;
    }
}
